package org.jeecg.modules.temporary.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: diy_temporary_applicant_info
 * @Author: jeecg-boot
 * @Date:   2020-09-03
 * @Version: V1.0
 */
@Data
@TableName("diy_temporary_applicant_info")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="diy_temporary_applicant_info对象", description="diy_temporary_applicant_info")
public class DiyTemporaryApplicantInfo implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ID_WORKER_STR)
    @ApiModelProperty(value = "id")
    private String id;
	/**钉钉内部userid*/
	@Excel(name = "钉钉内部userid", width = 15)
    @ApiModelProperty(value = "钉钉内部userid")
    private String dingUserId;
	/**姓名*/
	@Excel(name = "姓名", width = 15)
    @ApiModelProperty(value = "姓名")
    private String professorName;
	/**性别*/
	@Excel(name = "性别", width = 15)
    @ApiModelProperty(value = "性别")
    private Integer professorSex;
	/**毕业院校*/
	@Excel(name = "毕业院校", width = 15)
    @ApiModelProperty(value = "毕业院校")
    private String professorSchool;
	/**所学专业*/
	@Excel(name = "所学专业", width = 15)
    @ApiModelProperty(value = "所学专业")
    private String professorMajor;
	/**出生年月*/
	@Excel(name = "出生年月", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "出生年月")
    private Date professorBirthday;
	/**学历*/
	@Excel(name = "学历", width = 15)
    @ApiModelProperty(value = "学历")
    private String professorEducationBackground;
	/**毕业时间*/
	@Excel(name = "毕业时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "毕业时间")
    private Date professorGraduateDate;
	/**学位*/
	@Excel(name = "学位", width = 15)
    @ApiModelProperty(value = "学位")
    private String professorDegree;
	/**工作单位*/
	@Excel(name = "工作单位", width = 15)
    @ApiModelProperty(value = "工作单位")
    private String professorWorkUnit;
	/**通讯地址*/
	@Excel(name = "通讯地址", width = 15)
    @ApiModelProperty(value = "通讯地址")
    private String professorAddress;
	/**申报类别*/
	@Excel(name = "申报类别", width = 15)
    @ApiModelProperty(value = "申报类别")
    private String professorDeclareCategory;
	/**职务*/
	@Excel(name = "职务", width = 15)
    @ApiModelProperty(value = "职务")
    private String professorPosition;
	/**参加工作时间*/
	@Excel(name = "参加工作时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "参加工作时间")
    private Date professorBeginWork;
	/**技术职称*/
	@Excel(name = "技术职称", width = 15)
    @ApiModelProperty(value = "技术职称")
    private String professorTitle;
	/**从事专业*/
	@Excel(name = "从事专业", width = 15)
    @ApiModelProperty(value = "从事专业")
    private String professorWorkMajor;
	/**从事专业时间*/
	@Excel(name = "从事专业时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "从事专业时间")
    private Date professorMajorDate;
	/**身份证号*/
	@Excel(name = "身份证号", width = 15)
    @ApiModelProperty(value = "身份证号")
    private String professorIdentity;
	/**家庭地址*/
	@Excel(name = "家庭地址", width = 15)
    @ApiModelProperty(value = "家庭地址")
    private String professorHomeAddress;
	/**健康状况*/
	@Excel(name = "健康状况", width = 15)
    @ApiModelProperty(value = "健康状况")
    private String professorHealth;
	/**办公电话*/
	@Excel(name = "办公电话", width = 15)
    @ApiModelProperty(value = "办公电话")
    private String professorOfficeTel;
	/**手机*/
	@Excel(name = "手机", width = 15)
    @ApiModelProperty(value = "手机")
    private String professorPhone;
	/**本人项目简介*/
	@Excel(name = "本人项目简介", width = 15)
    @ApiModelProperty(value = "本人项目简介")
    private String professorProjectIntroduce;
	/**业务主管 部门*/
	@Excel(name = "业务主管 部门", width = 15)
    @ApiModelProperty(value = "业务主管 部门")
    private String professorLeadMsg;
	/**行政审批局意见*/
	@Excel(name = "行政审批局意见", width = 15)
    @ApiModelProperty(value = "行政审批局意见")
    private String professorApproveMsg;
	/**照片*/
	@Excel(name = "照片", width = 15)
    private transient String professorPhotoString;

    private byte[] professorPhoto;

    public byte[] getProfessorPhoto(){
        if(professorPhotoString==null){
            return null;
        }
        try {
            return professorPhotoString.getBytes("UTF-8");
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        }
        return null;
    }

    public String getProfessorPhotoString(){
        if(professorPhoto==null || professorPhoto.length==0){
            return "";
        }
        try {
            return new String(professorPhoto,"UTF-8");
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        }
        return "";
    }
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
	/**项目名称*/
	@Excel(name = "项目名称", width = 15)
    @ApiModelProperty(value = "项目名称")
    private String projectName;
	/**项目类型*/
	@Excel(name = "项目类型", width = 15)
    @ApiModelProperty(value = "项目类型")
    private String projectType;
	/**申请表照片*/
	@Excel(name = "申请表照片", width = 15)
    private transient String professorInfoPhotoString;

    private byte[] professorInfoPhoto;

    public byte[] getProfessorInfoPhoto(){
        if(professorInfoPhotoString==null){
            return null;
        }
        try {
            return professorInfoPhotoString.getBytes("UTF-8");
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        }
        return null;
    }

    public String getProfessorInfoPhotoString(){
        if(professorInfoPhoto==null || professorInfoPhoto.length==0){
            return "";
        }
        try {
            return new String(professorInfoPhoto,"UTF-8");
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        }
        return "";
    }
	/**是否可以修改
是否可以修改
*/
	@Excel(name = "是否可以修改 是否可以修改 ", width = 15)
    @ApiModelProperty(value = "是否可以修改 是否可以修改 ")
    private java.lang.Integer isdisabled;
	/**个人承诺书*/
	@Excel(name = "个人承诺书", width = 15)
    private transient java.lang.String professorCommitmentString;

    private byte[] professorCommitment;

    public byte[] getProfessorCommitment(){
        if(professorCommitmentString==null){
            return null;
        }
        try {
            return professorCommitmentString.getBytes("UTF-8");
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        }
        return null;
    }

    public String getProfessorCommitmentString(){
        if(professorCommitment==null || professorCommitment.length==0){
            return "";
        }
        try {
            return new String(professorCommitment,"UTF-8");
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        }
        return "";
    }
	/**个人工作简历*/
	@Excel(name = "个人工作简历", width = 15)
    private transient String professorResumeString;

    private byte[] professorResume;

    public byte[] getProfessorResume(){
        if(professorResumeString==null){
            return null;
        }
        try {
            return professorResumeString.getBytes("UTF-8");
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        }
        return null;
    }

    public String getProfessorResumeString(){
        if(professorResume==null || professorResume.length==0){
            return "";
        }
        try {
            return new String(professorResume,"UTF-8");
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        }
        return "";
    }
	/**学历、学位证书复印件*/
	@Excel(name = "学历、学位证书复印件", width = 15)
    private transient String professorDegreeImageString;

    private byte[] professorDegreeImage;

    public byte[] getProfessorDegreeImage(){
        if(professorDegreeImageString==null){
            return null;
        }
        try {
            return professorDegreeImageString.getBytes("UTF-8");
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        }
        return null;
    }

    public String getProfessorDegreeImageString(){
        if(professorDegreeImage==null || professorDegreeImage.length==0){
            return "";
        }
        try {
            return new String(professorDegreeImage,"UTF-8");
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        }
        return "";
    }
	/**专业资格职业证书复印件*/
	@Excel(name = "专业资格职业证书复印件", width = 15)
    private transient String professorQualificationString;

    private byte[] professorQualification;

    public byte[] getProfessorQualification(){
        if(professorQualificationString==null){
            return null;
        }
        try {
            return professorQualificationString.getBytes("UTF-8");
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        }
        return null;
    }

    public String getProfessorQualificationString(){
        if(professorQualification==null || professorQualification.length==0){
            return "";
        }
        try {
            return new String(professorQualification,"UTF-8");
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        }
        return "";
    }
	/**其他证明专业能力的材料*/
	@Excel(name = "其他证明专业能力的材料", width = 15)
    private transient String professorOtherString;

    private byte[] professorOther;

    public byte[] getProfessorOther(){
        if(professorOtherString==null){
            return null;
        }
        try {
            return professorOtherString.getBytes("UTF-8");
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        }
        return null;
    }

    public String getProfessorOtherString(){
        if(professorOther==null || professorOther.length==0){
            return "";
        }
        try {
            return new String(professorOther,"UTF-8");
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        }
        return "";
    }
	/**身份证复印件*/
	@Excel(name = "身份证复印件", width = 15)
    private transient String professorIdString;

    private byte[] professorId;

    public byte[] getProfessorId(){
        if(professorIdString==null){
            return null;
        }
        try {
            return professorIdString.getBytes("UTF-8");
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        }
        return null;
    }

    public String getProfessorIdString(){
        if(professorId==null || professorId.length==0){
            return "";
        }
        try {
            return new String(professorId,"UTF-8");
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        }
        return "";
    }
}
